package cn.wolfcode.luowowo.comment.dao;

import cn.wolfcode.luowowo.comment.domain.SceneryComment;
import cn.wolfcode.luowowo.comment.domain.SceneryReply;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * mongoDB景点点评回复接口
 */
@Repository
public interface ISceneryReplyDAO extends MongoRepository<SceneryReply, String> {
    /**
     * 通过commentId查询
     * @param commentId 点评id
     * @param pageable 分页信息
     * @return
     */
    Page<SceneryReply> findByCommentId(String commentId, Pageable pageable);


}
